package mx.itesm.menuprincipal;

import android.os.Bundle;

import android.app.Activity;
import android.view.Menu;
import android.view.View;


public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
	}
	
	public void mostrarAcercaDe(View v) {
		CCSprite sprite = CCSprite.sprite("OSITOS1.png");
		sprite.setPosition(400,240);
		CCAnimation animacion = CCAnimation.animation("caminar");
		animacion.addFrame("OSITOS1.png");
		animacion.addFrame("OSITOS2.png");
		animacion.addFrame("OSITOS3.png");
		animacion.addFrame("OSITOS4.png");
		CCIntervalAction accion = CCAnimate.action(1f,animacion,true);
		sprite.runAction(CCRepeatForever.action(accion));
		this.addChild(sprite);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
